package com.yr.ryjk.doctorduty.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.doctorduty.entity.DoctorDuty;

public interface DoctorDutyMapper {
    int deleteByPrimaryKey(String id);

    int insert(DoctorDuty record);

    int insertSelective(DoctorDuty record);

    DoctorDuty selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(DoctorDuty record);

    int updateByPrimaryKey(DoctorDuty record);
    
    List<DoctorDuty> selectOfPage(int start, int limit, @Param("name")String name, @Param("level")String level);
	
	List<DoctorDuty> selectOfApp(@Param("name")String name, @Param("level")String level);

	int selectCount(@Param("name")String name, @Param("level")String level);

	@Select("select * from doctor_duty")
	@ResultMap("BaseResultMap")
	List<DoctorDuty> selectAllDuty();
    
}